<?php 
	include("includes/connect.php");
	include("includes/function.php");

	$proID = $_REQUEST["proID"];

	//echo $proID;

	
	$db = new myDBS;
	$where = "proID = '$proID'";
	$result = $db->showData1("pp_check_job", $where);

?>

<table class="table" width="100%" >
	<caption><br></caption>
	<thead>
		<tr>
			<th>#</th>
			<th>วันที่</th>
			<th>งบประมาณ</th>
			<th>แหล่งที่มา 1</th>
			<th>แหล่งที่มา 2</th>
		</tr>
	</thead>
	<tbody>
		
		<?php
			$i=0;
			while ( $rows = $db->fetch_object ( $result )){
				$i++;
		?>
		<tr>
		  <td><?php echo $i; ?></td>
		  <td><?php echo $rows->acceptDate; ?></td>
		  <td><?php echo number_format($rows->amount); ?></td>
		  <td><?php echo number_format($rows->resourceMoney_1); ?></td>
		  <td><?php echo number_format($rows->resourceMoney_2); ?></td>
		</tr>
		<?php
			}
		?>
	</tbody>

</table>


<div class="form-actions">

	<button class="btn close-dialog"><i class="icon-remove"></i> ปิดหน้าต่าง</button>

</div>
